#ifndef __TEMPLATE_MGR_H__
#define __TEMPLATE_MGR_H__

#include "tinyxml/tinyxml.h"
#include <string>
#include <list>
#include <map>

typedef std::list<TiXmlElement* > ttTempList;
typedef std::map<std::string,std::string> ttTempMap;
using namespace std;
class TemplateMgr
{
public:
    TemplateMgr();
	void loadProjectFile( const string & out_put );
	const ttTempList &getTemp(void)
	{
		return m_Temp;
	}
	void genProject( const string & uuid,const string &doc_name,const string &doc_path );
private:
	void searchLocal(void);
private:
	string m_LocalTempPath;
	string m_Output;
	ttTempList m_Temp;
	ttTempMap m_Paths;
};

#endif // __TEMPLATE_MGR_H__